package com.meilingcloud.activiti.service;

import com.github.pagehelper.Page;
import com.meilingcloud.activiti.domain.dto.ActFormDataSaveDto;
import com.meilingcloud.activiti.domain.dto.ActTaskDto;
import com.meilingcloud.common.core.page.PageDomain;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

public interface IActTaskService {

    Page<ActTaskDto> selectProcessDefinitionList(PageDomain pageDomain);

    Map<String, List<String>> formDataShow(String taskId);

    boolean formDataSave(String taskId, ActFormDataSaveDto params) throws ParseException;

    /**
     * 批量审批
     *
     * @param taskIds 任务id
     * @param params  批处理表单数据保存dto
     * @return boolean
     */
    boolean batchFormDataSave(List<String> taskIds, ActFormDataSaveDto params);
}
